# Create your views here.

from django.shortcuts import render_to_response, get_object_or_404
from django.db.models import Q
from django.contrib.auth.decorators import login_required
from wikinews.news.models import Article

@login_required
def article(request, identifier):
    article = get_object_or_404(Article, identifier=identifier, status=1)
    return render_to_response("article.html", locals())
